import { StateType, PayloadType } from '../../interface/dva';

export default {
    namespace: 'api',
    state: {},
    reducers: {
        USER_CHANGE(state: StateType, { payload }: PayloadType) {
            return {
                ...state,
                user: payload
            }
        },
    },
    effects: {},
};